
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    {if condition="$Request.session.admin.id==1"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('选择企业')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enterp_id" data-rule="required" data-source="auth/admin/index" data-field="enterp_name" class="form-control selectpage" name="row[enterp_id]" type="text" value="">
        </div>
    </div>
    {/if}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pici_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pici_code" class="form-control" name="row[pici_code]" type="text">
        </div>
    </div>

    {if condition="$admin.is_fangcuan==2 || $Request.session.admin.id==1"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否是防窜货')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            <label for="row[is_fangcuan]-2"><input id="row[is_fangcuan]-2" name="row[is_fangcuan]" type="radio" value="2"  /> 是</label> 
            <label for="row[is_fangcuan]-1"><input id="row[is_fangcuan]-1" name="row[is_fangcuan]" type="radio" value="1" checked /> 否</label> 
            </div>
        </div>
    </div>
    {/if}
    {if condition="$admin.is_suyuan==2 || $Request.session.admin.id==1"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否是溯源码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            <label for="row[is_suyuan]-2"><input id="row[is_suyuan]-2" name="row[is_suyuan]" type="radio" value="2"  /> 是</label> 
            <label for="row[is_suyuan]-1"><input id="row[is_suyuan]-1" name="row[is_suyuan]" type="radio" value="1" checked /> 否</label> 
            </div>
        </div>
    </div>
    {/if}
    {if condition="$admin.is_activity==2 || $Request.session.admin.id==1"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否是活动码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            <label for="row[is_activity]-2"><input id="row[is_activity]-2" name="row[is_activity]" type="radio" value="2"  /> 是</label> 
            <label for="row[is_activity]-1"><input id="row[is_activity]-1" name="row[is_activity]" type="radio" value="1" checked /> 否</label> 
            </div>
        </div>
    </div>
    {/if}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否是套标')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            {foreach name="taoList" item="vo"}
            <label for="row[is_tao]-{$key}"><input id="row[is_tao]-{$key}" name="row[is_tao]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('防伪码长度')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code_length" class="form-control" name="row[code_length]" type="code_length" value="16">
        </div>
    </div>

    <div class="form-group hidden" id='tao_number'>
        <label class="control-label col-xs-12 col-sm-2">{:__('每套个数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tao_number" class="form-control" name="row[tao_number]" type="tao_number" value="0">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-number" class="form-control" name="row[number]" type="number" value="0">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="typeList" item="vo"}
            <label for="row[type]-{$key}"><input id="row[type]-{$key}" name="row[type]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_number" class="form-control" name="row[start_number]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" class="form-control" name="row[remark]" type="text">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
